{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}	

<script language="JavaScript" type="text/javascript">
{literal}
function checkOperation()
{
	var operation = document.getElementById("operation").value;
	
    if ( operation == 'Move' )
    document.getElementById("moveto_div").style.display='block';
    else
    document.getElementById("moveto_div").style.display='none';

	
}
{/literal}
</script>

{$html->toolbar->title('##Forums removing##')}

<form name="adminForm" method="POST">
	<input type="hidden" name="agora_task" value="forums"/>
	<input type="hidden" name="task" value="remove_proceed"/>
	<input type="hidden" name="option" value="com_agora"/>
	<input type="hidden" name="checked" value="0"/>
	<input type="hidden" name="boxchecked" value="0"/>
{foreach from=$cid item=ccid}
	<input type="hidden" name="cid[]" value="{$ccid}"/>
{/foreach}
		<fieldset>
			<legend>##Forums/Categories removing##</legend>
				<table class="admintable">
				<tbody>
					<tr>
						<td>
						{adminform->select var=operation id=operation keys=$operation values=$operation caption='Operation' desc='Operation' maxlength=255 onChange='checkOperation();'}
						</td>
					</tr>
				</tbody>
				</table>
				
{if !empty($cid_type)}
					<div id="moveto_div" style="display:none;">
					<table class="admintable">
					<tr>
						<td align="right" class="key editlinktip hasTip" title="">		<strong>##MOVE_TO##</strong>	</td>
						<td>
						
		<select name="moveto">
{if $cid_type eq 'forum'}

			{foreach from=$forums item=qj_cat}
			<optgroup label="{$qj_cat.cat_name}">
				{foreach from=$qj_cat.forums item=qj_forum}
				{if $cid_id neq $qj_forum.id}
				<option value="{$qj_forum.id}">{$qj_forum.forum_name}</option>
				{/if}
				{/foreach}
			</optgroup>
			{/foreach}
{else if $cid_type eq 'category'}

			{foreach from=$forums item=qj_cat}
			{if $cid_id neq $qj_cat.cat_id}
			<option value="{$qj_cat.cat_id}">{$qj_cat.cat_name}</option>
			{/if}
			{/foreach}

{/if}
		</select>

						</td>
					</tr>
					</table>
					</div>
{/if}

		<div class="width-100" align="center">
			<input type="submit" name="Submit" value="##Submit##"/>
			<a href=""><input type="button" value="##Cancel##" /></a>
		</div>
		</fieldset>
</form>
  